package com.btspread.meta;

import java.math.BigDecimal;

import com.netease.print.daojar.util.ReflectUtil;

/**
 * @author dingmingliang
 * 
 */
public class BtItem implements Comparable<BtItem> {

	private String title;

	private String url;

	private BigDecimal size;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public BigDecimal getSize() {
		return size;
	}

	public void setSize(BigDecimal size) {
		this.size = size;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int compareTo(BtItem o2) {
		return o2.size.compareTo(this.size);
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ReflectUtil.genToString(this);
	}
}
